<template>
	<view>
		<uni-section class="pub-title" title="服务条款" type="line"></uni-section>
		<view class="block-list-one" v-for="(item ,index) in chanpList" :key="index">
			<uni-card class="icon-radius font-bold" :title="item.chanpmc" :isShadow="true" extra="查看详情 >" @click="fwtkDetail(item)">
				<h1>{{item.chanpms}}</h1>
			</uni-card>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				chanpList: []
			}
		},
		
		onLoad() {
			uni.request({
				url: getApp().globalData.serviceUrl + "/chanp/kuybChanp/list",
				data: {
		
				},
				method: 'GET',
				success: (resp) => {
					if (resp.data.success) {
						this.chanpList = resp.data.result.records
					}
				},
		
			})
		},
		
		methods: {
			fwtkDetail(item) {
				uni.setStorageSync("fuwtkDetail", item)
				uni.navigateTo({
					url:"../../pages2/fuwtkDetail/fuwtkDetail"
				})
			}
		}
	}
</script>

<style scoped>
	.block-list-one .uni-card__header-title-text{flex:2 !important;}
</style>
